package model;

/**
 * @author Hande Yentur
 * @param type 0 -> cd, 1-> dvd 
 */

public class film {
	private String fname;
	private String director;
	private long ownerid;
	private boolean isLented;
	private String whoLendIt;
	private int type;

	public film(String fname, String director, long ownerid, int type) {
		this.fname = fname;
		this.director = director;
		this.ownerid = ownerid;
		this.type =type;
	}

	public film(String fname, String director, long ownerid, boolean islented, String whoLendIt, int type){
		this.fname = fname;
		this.director = director;
		this.ownerid = ownerid;
		this.isLented = islented;
		this.whoLendIt = whoLendIt;
		this.type = type;
	}

	public String getFname() {
		return fname;
	}

	public void setFname(String fname) {
		this.fname = fname;
	}

	public String getDirector() {
		return director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public long getOwnerid() {
		return ownerid;
	}

	public void setOwnerid(long ownerid) {
		this.ownerid = ownerid;
	}

	public boolean isLented() {
		return isLented;
	}

	public void setLented(boolean isLented) {
		this.isLented = isLented;
	}

	public String getWhoLendIt() {
		return whoLendIt;
	}

	public void setWhoLendIt(String whoLendIt) {
		this.whoLendIt = whoLendIt;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
}